Function Reference

ToolTip

Creates a tooltip anywhere on the screen.

ToolTip ( "text" [, x [, y [, "title" [, icon [, options]]]]] )

 

Parameters

text The text of the tooltip. (An empty string clears a displaying tooltip)
x, y [optional] The x,y position of the tooltip.
title [optional] The title for the tooltip Requires IE5+
icon [optional] Pre-defined icon to show next to the title: Requires IE5+. Requires a title.
0 = No icon, 1 = Info icon, 2 = Warning icon, 3 = Error Icon
options [optional] Sets different options for how the tooltip will be displayed (Can be added together):
1 = Display as Balloon Tip Requires IE5+
2 = Center the tip at the x,y coordinates instead of using them for the upper left corner.

 

Return Value

None.

 

Remarks

To skip an optional parameter, leaving it's default value intact, use:
    "" for a string parameters
    -1 for a numeric parameters

If the x and y coordinates are omitted the, tip is placed near the mouse cursor.
A Tooltip will appear until the script terminates or ToolTip("") is called.
You may use @CR or @LF to create multi-line tooltips.
The title, icon and Balloon Tip option all require Internet Explorer 5.0 or later in order to function.
To display an icon, you must specify a non-empty title. The icon appears on the same row as the title and thus requires a title to be present.
If using the center flag, the center of the tooltip will be at the coordinates specified. If using the center flag with a Balloon Tip, the stem will be centered on the balloon and will point to the coordinates specified.

 

Related

TrayTip

 

Example


; This will create a tooltip in the upper left of the screen
ToolTip("This is a tooltip", 0, 0)
Sleep(2000) ; Sleep to give tooltip time to display